<?php 
require_once('include/client.php');
require_once('include/authority.php');

if(!Authority::is_manager())
  {
    die('FAIL');
  }
$username = $_GET['username'];
if(!isset($username))
  {
    die('FAIL');
  }
if(!Client::del_client_by_username($username))
  {
    die('FAIL');
  }
die('OK');
?>